import request from '@/utils/request';

// 公众号列表
export const getOfficeAccountList = (data: any) => {
    return request({
        url: '/scrm-api/console/component/offical/list',
        method: 'get',
        params: data,
        timeout: 1000 * 60 * 5
    });
};

// 添加公众号
export const setOfficeAccount = (data: any) => {
    return request({
        url: '/scrm-api/console/component/install/link',
        method: 'get',
        params: data
    });
};

// 添加状态回调
export const getOfficeAccountState = (data: any) => {
    return request({
        url: '/wechat/provider/component/callback',
        method: 'get',
        params: data
    });
};
